<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0"/>
    <script src="../static/js/jquery-3.5.1.min.js"></script>

    <script type="text/javascript" src="../static/js/jquery-easyui-1.8.6/jquery.easyui.min.js"></script>
    <script src="../static/js/jquery-easyui-1.8.6/locale/easyui-lang-zh_CN.js"></script>
    <link rel="stylesheet" href="../static/js/jquery-easyui-1.8.6/themes/icon.css">
    <link rel="stylesheet" href="../static/js/jquery-easyui-1.8.6/themes/default/easyui.css">

    <link rel="stylesheet" href="../static/js/jquery-easyui-1.8.6/demo/demo.css">
    <title>bootstrap</title>
</head>
<body>
    <h2>基本可拖动框</h2>
    <p>用鼠标点击下面的方框。</p>
    <div style="margin:20px 0;"></div>
    <div class="easyui-draggable" style="width:200px;height:150px;background:#fafafa;border:1px solid #ccc"></div>
    <div class="easyui-draggable" data-options="handle:'#title'" style="width:200px;height:150px;background:#fafafa;border:1px solid #ccc;margin-top:10px">
        <div id="title" style="padding:5px;background:#ccc;color:#fff">Title</div>
    </div>

    <h2>基本进度条</h2>
    <p>单击下面的按钮以显示进度信息。</p>
    <div style="margin:20px 0;">
        <a href="#" class="easyui-linkbutton" onclick="start()">Start</a>
    </div>
    <div id="p" class="easyui-progressbar" style="width:400px;"></div>
    <script>
        function start(){
            var value = $('#p').progressbar('getValue');
            if (value < 100){
                value += Math.floor(Math.random() * 10);
                $('#p').progressbar('setValue', value);
                setTimeout(arguments.callee, 200);
            }
        };
    </script>

</body>
</html>